package moodish.dummy;

import static org.junit.Assert.*;

import moodish.comm.ClientSideMessage.Type;

import org.junit.BeforeClass;
import org.junit.Test;

public class ClientCommDummyTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	
	@Test
	public void testConnect() {

		ClientCommDummy client = new ClientCommDummy();

		ClienteSideMessage msg=  new ClienteSideMessage("payload", "from", Type.CONNECTED);

		client.addMessage(msg);
		
		assertEquals(true,client.hasNextMessage());
		assertEquals(msg,client.getNextMessage());	

	}


}
